
import Layout from '@/layout'

export default {
  path: '/employee',
  name: 'employee',
  component: Layout,
  children: [
    {
      path: '',
      name: 'Employee',
      component: () => import('@/views/employee/index'),
      meta: { title: '员工', icon: 'skill' }
    },
    {
      // /employee/detail/11
      // 有了？号表示可选路由，下面规则可以匹配/employee/detail  /employee/detail/2
      path: '/employee/detail/:id?',
      name: 'EmployeeDetail',
      hidden: true,
      component: () => import('@/views/employee/EmployeeDetail')
      // meta: { title: '员工', icon: 'skill' }
    }
  ]
}
